x86: remove IS_PRIV_FOR references
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 23 Apr 2013 09:56:05 +0000 (11:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 23 Apr 2013 09:56:05 +0000 (11:56 +0200)
commit3f28d0077788e7f8cd3ee25b023a4225d7e26e87
tree56758394d52f0aed5f71ad2763a54d76c07d8810
parent4bc22a50ebc1fb1695d59f69105797e208021edb
x86: remove IS_PRIV_FOR references

The check in guest_physmap_mark_populate_on_demand is redundant, since
its only caller is populate_physmap whose only caller checks the
xsm_memory_adjust_reservation hook prior to calling.

Add a new XSM hook for the other two checks since they allow privileged
domains to arbitrarily map a guest's memory.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com> (release perspective)
xen/arch/x86/mm.c
xen/arch/x86/mm/p2m-pod.c
xen/arch/x86/mm/shadow/multi.c
xen/include/xsm/dummy.h
xen/include/xsm/xsm.h
xen/xsm/dummy.c
xen/xsm/flask/hooks.c
xen/xsm/flask/policy/access_vectors